package com.sise.dubbo.common;

/**
 * @author hao_lin
 * @data 2018/10/9 17:32
 */
public class ServiceException extends Exception {

    private String code;

    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ServiceException(String msg) {
        super(msg);
        this.msg=msg;
    }

    public ServiceException(String code, String msg) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public ServiceException(String code, String msg, Throwable throwable) {
        super(msg, throwable);
        this.code = code;
        this.msg = msg;
    }
}
